package org.nokatag.timer;

import java.util.Date;
import java.util.List;
import java.util.Timer;

/**
 * 参数传递类
 * @author rebin
 *
 */
public class NTimerItem {
	
	private String TimerID=null;//定时器ID
	private int DoType=0;//操作类型
	private String TimerPrave=null;//定时时间
	private String Delayed=null;//延后启动时间,以秒为单位
	private String ClassUrl=null;//调用的类路径
	private List<Object> ClassPrave=null;//参数,需要传入调类的
	private Timer Ntimer=null;//定时器
	private Date start=null;//开时计时的年号，或月号，或日，或小时
	
	
	public  NTimerItem(String TimerID,int DoType,String TimerPrave,String ClassUrl){
		NTimerItemp(TimerID,DoType,TimerPrave,ClassUrl,"5",null,null);
	}
	
	public  NTimerItem(String TimerID,int DoType,String TimerPrave,String ClassUrl,String Delayed){
		NTimerItemp(TimerID,DoType,TimerPrave,ClassUrl,Delayed,null,null);
	}
	
	public  NTimerItem(String TimerID,int DoType,String TimerPrave,String ClassUrl,String Delayed,Date start){
		NTimerItemp(TimerID,DoType,TimerPrave,ClassUrl,Delayed,start,null);
	}
	
	public  NTimerItem(String TimerID,int DoType,String TimerPrave,String ClassUrl,String Delayed,Date start,List<Object> ClassPrave){
		NTimerItemp(TimerID,DoType,TimerPrave,ClassUrl,Delayed,start,ClassPrave);
	}
	
	public void NTimerItemp(String TimerID,int DoType,String TimerPrave,String ClassUrl,String Delayed,Date start,List<Object> ClassPrave){
		this.TimerID=TimerID;
		this.DoType=DoType;
		this.TimerPrave=TimerPrave;
		this.Delayed=Delayed;
		this.ClassUrl=ClassUrl;
		this.ClassPrave=ClassPrave;
		this.start=start;
		this.Ntimer=new Timer(true);
	}
	
	public String getTimerID() {
		return TimerID;
	}
	public void setTimerID(String timerID) {
		TimerID = timerID;
	}
	public int getDoType() {
		return DoType;
	}
	public void setDoType(int doType) {
		DoType = doType;
	}
	public String getTimerPrave() {
		return TimerPrave;
	}
	public void setTimerPrave(String timerPrave) {
		TimerPrave = timerPrave;
	}
	public String getDelayed() {
		return Delayed;
	}
	public void setDelayed(String delayed) {
		Delayed = delayed;
	}
	public String getClassUrl() {
		return ClassUrl;
	}
	public void setClassUrl(String classUrl) {
		ClassUrl = classUrl;
	}
	public List<Object> getClassPrave() {
		return ClassPrave;
	}
	public void setClassPrave(List<Object> classPrave) {
		ClassPrave = classPrave;
	}
	public Timer getNtimer() {
		return Ntimer;
	}
	public void setNtimer(Timer ntimer) {
		Ntimer = ntimer;
	}
	public Date getStart() {
		return start;
	}
	public void setStart(Date start) {
		this.start = start;
	}
	
}
